def remove_illegal_chars(orig_string):
    "Removes illegal chars from a string."
    
    string = orig_string
    
    string = string.replace("/", "")
    string = string.replace("?", "")
    string = string.replace("<", "")
    string = string.replace(">", "")
    string = string.replace("\\", "")
    string = string.replace(":", "")
    string = string.replace("*", "")
    string = string.replace("|", "")
    string = string.replace("\"", "")
    
    return string